home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 August / CICA - The Ultimate Collection of Shareware for Windows (Disc 2) (August 1995).iso / disc2 / programr / atre27.exe / ATREE_27 / LFWIN / XMALLOC.C < prev   
C/C++ Source or Header  |  1992-08-01  |  280b  |  20 lines

  1. #include <windows.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <alloc.h>
  5.  
  6. char far *
  7. xmalloc(n)
  8. unsigned int n;
  9. {
  10. char far *p;
  11.  
  12.    if ((p = farmalloc(n)) == NULL) {
  13.    /*
  14.       fprintf(stderr, "malloc failed\n");
  15.    */
  16.       exit(0);
  17.    }
  18.    return(p);
  19. }
  20.